<{include file ="header.tpl"}>
<{include file ="navibar.tpl"}>
<{include file ="sidebar.tpl"}>
<!-- START 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<{$osadmin_action_alert}>
<{$osadmin_quick_note}>

<div class="block">
    <a href="#page-stats" class="block-heading" data-toggle="collapse">广告图管理</a>

    <div id="page-stats" class="block-body collapse in">
        <table class="table table-striped">
            <thead>
            <tr style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">广告图</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">张数</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">预览</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">操作</th>
            </tr>
            </thead>
            <tbody>

            <tr style="background:#fff;">
                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                    <{foreach name=adi from=$advert.advert_imgs item=adimg_info}>
                <img width="56" height="56" src="<{$adimg_info}>"/>
                    <{/foreach}>
                </td>
                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"><{$advert.count}>
                </td>
                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"><a class="btn btn-info"
                                                                                               href="<{$smarty.const.SHOP_URL}>"
                                                                                               target="_blank"
                                                                                               title="预览"
                                                                                               alt="预览">预览</a></td>

                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                    <a class="btn btn-info"
                       href="home_advert.php"
                       target="_self" title="上传广告图"
                       alt="上传广告图">上传广告图</a></td>
                </td>
            </tr>
            </tbody>
        </table>

    </div>
</div>

<!---操作的确认层，相当于javascript:confirm函数--->
<{$osadmin_action_confirm}>

<!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<{include file="footer.tpl" }>